export const tableOption = {
  border: true,
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  index: true,
  indexLabel: '序号',
  searchMenuSpan: 6,
  labelWidth: '160',
  indexWidth: '60',
  columnBtn: false,
  menuWidth: 300,
  // 树形配置
  rowKey: 'id',
  editBtn: false,
  rowParentKey: 'parentId',
  selection: true,
  searchLabelWidth: 'auto',
  searchMenuPosition: 'left',
  searchEnter:true,
  column: [
    {
      type: 'select',
      label: '分区所属建筑',
      prop: 'subareaJzbm',
      addDisplay: true,
      title: '选择字段',
      formslot: true,
      slot: true,
      hide: true,
      searchLabelWidth: 120,
      // editDisplay: false,
      // dicUrl: '/bm/bamsbuildings/getBamSBuildingsBy',
      dicMethod: 'post',
      props: {
        label: 'buildingsCn',
        value: 'buildingsId'
      },
      searchType: 'select',
      searchOrder: 3,
      rules: [
        {
          required: true,
          message: '分区所属建筑必须填写',
          trigger: 'blur'
        }
      ]
    },
    {
      type: 'select',
      label: '分区所属楼层',
      prop: 'subareaLc',
      addDisplay: true,
      title: '选择字段',
      formslot: true,
      slot: true,
      hide: true,
      // editDisplay: false,
      searchLabelWidth: 120,
      // dicUrl: '/bm/bamsfloor/getBamFloorBy',
      dicMethod: 'post',
      props: {
        label: 'floorCn',
        value: 'floorCode'
      },
      searchType: 'select',
      searchOrder: 2,
      rules: [
        {
          required: true,
          message: '分区所属楼层必须填写',
          trigger: 'blur'
        }
      ]
    },
    {
      type: 'input',
      label: '分区名称',
      prop: 'subareaCn',
      formslot: true,
      // editDisplay: false,
      hide: true,
      rules: [{ required: true, message: '请输入分区名称', trigger: 'blur' }]
    },
    {
      type: 'input',
      addDisabled: true,
      hide: true,
      editDisplay: false,
      label: '分区英文名',
      prop: 'subareaEn',
      addDisplay: true
    },
    {
      label: '区域分类',
      hide: true,
      formslot:true,
      prop: 'inspectionClassification',
      // type: 'select',
      // dicUrl: '/om/ominspection/page?current=1&size=999',
      // dicFormatter: (data) => {
      //   return data.data.records
      // },
      // // width: '150',
      // props: {
      //   label: 'name',
      //   value: 'id'
      // },
      rules: [{ required: true, message: '请输入区域分类', trigger: 'blur' }]
    },
    {
      label: '区域分类',
      width: 200,
      prop: 'inspectionClassificationName',
      addDisplay: false,
      editDisplay: false,
    },
    {
      type: 'input',
      label: '区域名称',
      formslot: true,
      prop: 'inspectionName',
      width: '200',
      align: 'left',
      overHidden: true,
      search: true,
      rules: [
        {
          required: true,
          message: '请输入区域名称',
          trigger: 'blur'
        }
      ]
    },
    {
      prop: 'inspectionCode',
      type: 'input',
      label: '区域编号',
      search: true,
      addDisabled: true,
      editDisabled: true,
      overHidden: true
    },

    {
      type: 'input',
      label: '关联设备',
      prop: 'associatedDevice',
      addDisplay: false,
      editDisplay: false,
      overHidden: true
    },
    {
      type: 'textarea',
      label: '分区轮廓',
      prop: 'inspectionSize',
      addDisplay: false,
      editDisplay: false,
      span: 24,
      hide: true
    },
    {
      type: 'textarea',
      label: '分区描述',
      hide: true,
      prop: 'inspectionInfo',
      addDisplay: true,
      span: 24
    }
  ]
}
